<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class Notice extends Model
{
	use HasDateTimeFormatter;  
	
	public function scopeShow($query){
		return $query->where('show',1);
	}


	public function scopeUser($query){
		return $query->where('type',2);
	}

}
